//定义一些mock数据
export default{
    'GET /api/users/list':{
        code:200,
        msg:"请求成功",
        data:[
        {id:1,name:"张三",age:20},
        {id:2,name:"李四",age:25},
        {id:3,name:"王五",age:30},
        ]

    },
    'POST /api/users/add':(req:any,res:any)=>{
        console.log(req.body);
        return res.json({
            code:200,
            msg:"请求成功",
            data:{
                name:'huxubo','age':34
            }
        })
     
        
    }
}
